<div class="row-fluid">
  <div class="span3" style="padding-left: 45px;">
    <a href="" ng-click="link_vnc(vm)" ng-show="vm.graphics_type=='vnc'"> <img fallback="/static/images/preview.png" ng-src="{{ screen_url }}"></a>
      <a href="spice://{{ vm.remote_password }}@{{ vm.host.ip }}:{{ vm.id+5900 }}" ng-show="vm.graphics_type=='spice'">
          <img fallback="/static/images/preview.png" ng-src="{{ screen_url }}">
      </a>
  </div>
  <div class="span9">
    <table class="table table-overview no-hover">
      <thead>
        <th>{{ vm.name }}虚拟机信息</th>
      </thead>
      <tbody>
        <tr>
          <td>
            <div>状态:</div>
            <div><img ng-src="/static/images/vmstatus/{{ vm.status }}.png" alt="" class="img-size16"/>{{vm.status | vmstatus}}</div>
          </td> 
          <td>
            <div>随主机启动:</div>
            <div><span class="badge badge-success">{{vm.autostart | yesorno}}</span></div>
          </td>
                      <td>
            <div>cpu:</div>
            <div><span class="badge badge-success">{{vm.vcpu}}</span></div>
          </td>
        </tr>
        <tr>

          <td>
            <div>内存:</div>
            <div><span class="label label-info">{{vm.memory}}MB</span></div>
          </td>
                      <td>
            <div>磁盘数量:</div>
            <div><span class="label label-info">{{vm.vdisk_set.length}}</span></div>
          </td>
          <td>
            <div>操作系统:</div>
            <div><img ng-src="/static/images/os16/os_{{ vm.os_type |lowercase }}.png" alt="" class="img-size16"/>
                {{vm.os_type}}
            </div>
          </td>
        </tr>

      </tbody>
    </table>
  </div>
</div>
<div id="vms" class="tab-pane" >
  <ng:include src="'/static/partials/vms/_action_bar.html'" />
</div>
<div class="row-fluid">
  <div class="span4">    
    <curvegraph url="/api/vm/{{vm.id}}/current_cpu" width="300" height="200" max="100" min="0" title="CPU" serienum='1' seriesnam1='cpu'></curvegraph>
  </div>
  <div class="span4">    
    <curvegraph url="/api/vm/{{vm.id}}/current_disk" width="300" height="200" min="0" max="8192" suffix="bytes" title="磁盘" serienum="2" seriesnam1='读' seriesnam2='写'></curvegraph>
  </div>
  <div class="span4">     
    <curvegraph url="/api/vm/{{vm.id}}/current_traffic" width="300" height="200" min="0" max="1024" suffix="bytes" title="网络" serienum="2" seriesnam1='接收' seriesnam2='发送'></curvegraph>
  </div>
</div>